package com.bjc.listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

/**
 * @program: servlet
 * @description: ServletContextListener监听器   监听全局作用域对象的创建和销毁
 * @author: bjc
 * @create: 2021-08-20 21:47
 */
public class OneListener implements ServletContextListener {
    @Override
    public void contextInitialized(ServletContextEvent servletContextEvent) {
        System.out.println("ServletContextListener 初始化。。。。");
    }

    @Override
    public void contextDestroyed(ServletContextEvent servletContextEvent) {
        System.out.println("ServletContextListener 被销毁。。。。");
    }
}
